#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL;
namespace Cephei.QL.Experimental.Credit
{
     // <summary> 
	// @class DefaultEvent
	// @brief Credit event on a bond of a certain seniority(ies)/currency  Represents a credit event affecting all bonds with a given \ seniority and currency. It assumes that all such bonds suffer \ the event simultaneously. Some events affect all seniorities and this has to be encoded through a different set of events of the same event type. The event is an actual realization, not a contractual reference, as such it contains only an atomic type.
	// </summary>
    [Guid ("385863CA-4D32-4f28-8B54-6303661B6775"),ComVisible(true)]
	public interface IDefaultEvent : Cephei.QL.IEvent
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Cephei.QL.ICurrency Currency {get;}
        
		 DateTime Date {get;}
        
		 Cephei.QL.Experimental.Credit.IDefaultType DefaultType {get;}
        
		 QL.Experimental.Credit.SeniorityEnum EventSeniority {get;}
        
		 Boolean HasSettled {get;}
        
		 Boolean IsDefault {get;}
        
		 Boolean IsRestructuring {get;}
        
		 Boolean MatchesDefaultKey(Cephei.QL.Experimental.Credit.IDefaultProbKey contractKey);
        
		 Boolean MatchesEventType(Cephei.QL.Experimental.Credit.IDefaultType contractEvType);
        
		 Double RecoveryRate(QL.Experimental.Credit.SeniorityEnum seniority);
    }

    // <summary> 
	// @class DefaultEvent
	// @brief Credit event on a bond of a certain seniority(ies)/currency  Represents a credit event affecting all bonds with a given \ seniority and currency. It assumes that all such bonds suffer \ the event simultaneously. Some events affect all seniorities and this has to be encoded through a different set of events of the same event type. The event is an actual realization, not a contractual reference, as such it contains only an atomic type. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IDefaultEvent_Factory // : Collection_Factory<IDefaultEvent, ICell<IDefaultEvent>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IDefaultEvent, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIDefaultEvent&gt</returns>
        IVector<IDefaultEvent> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IDefaultEvent, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIDefaultEvent&gt&gt&gt</returns>
        Generic.ICell<IVector<Generic.ICell<IDefaultEvent>>> CreateCellVector();
        IVector<IDefaultEvent> CreateVector(IEnumerable<IDefaultEvent> source);
        Generic.ICell<IVector<Generic.ICell<IDefaultEvent>>> CreateCellVector(IEnumerable<Generic.ICell<IDefaultEvent>> source);
        
	    IDefaultEvent Create (DateTime creditEventDate, Cephei.QL.Experimental.Credit.IDefaultType atomicEvType, Cephei.QL.ICurrency curr, QL.Experimental.Credit.SeniorityEnum bondsSen, Microsoft.FSharp.Core.FSharpOption<DateTime> settleDate, Microsoft.FSharp.Core.FSharpOption<Double> recoveryRate);
    }
}

